﻿using MCPlatform.MotionLib.Base.Models;
using NLog;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MCPlatform.MotionLib.Base.AssitantClass
{
    public class ReadConfigData
    {
        static Logger logger = LogManager.GetCurrentClassLogger();      

        //获取点位信息表
        public static List<T>? GetParaConfigs<T>(string path)where T : class
        {
            try
            {

                return ConvertJson.ReadFileToList<T>(path);



            }
            catch (System.Exception ex)
            {

                logger.Error(ex);
                return null;

            }

          
        }
    }
}
